<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>导入导出插件</title>
		<link rel="stylesheet" type="text/css" href="${s.base}/lib/layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="${s.base}/css/base/index.css" />
		<link rel="stylesheet" type="text/css" href="${s.base}/lib/dtree/dtree.css"/>
		<link rel="stylesheet" type="text/css" href="${s.base}/lib/dtree/font/iconfont.css"/>
		<link rel="stylesheet" type="text/css" href="${s.base}/css/base/darkBlue.css"/>
	</head>
	<body class="wrap-container clearfix">
		<div class="column-content-detail padt10" id="tool">
			<div class="cy-table-item-title">
				<div class="cy-button-ctn"></div>
				导入导出案例
			</div>
			<!--导入开始-->
			<div class="layui-form-item mart20">
				<label class="layui-form-label w90">单图片操作：</label>

				<div class="layui-input-block cy-uploadpic-ctn" id="headLogo" style=" float:left;margin-left:0!important;position:relative;">
					<input type="hidden" name="headLogo" value="${sysUser.headLogo}" />
					<div class="close hide" onClick="event.cancelBubble = true"><i class="iconfont FS12">&#xe937;</i></div>
					<img src="${sysUser.headLogo}" style="display: none;width: 100%;height: 100%;"/>
					<div class="btnctn">
						<!--<span>上传头像</span>-->
					</div>
				</div>
			</div>
			<!--单图片结束-->
			<div class="dashed"></div>
			<!--多附件开始-->
			<!--<div class="wrap-container clearfix">
				<div class="column-content-detail" id="tool">
					<div class="layui-upload">
						<button type="button" class="layui-btn layui-btn-normal" id="testList">选择多文件</button>
						<input type="hidden" id="objectId" name="objectId"/>
						<div class="layui-upload-list">
							<table class="layui-table" style="width:60%;">
								<thead>
								<tr><th>文件名</th>
									<th>大小</th>
									<th>状态</th>
									<th class="center">操作</th>
								</tr></thead>
								<tbody id="demoList"></tbody>
							</table>
						</div>
					</div>
				</div>
			</div>-->
			<!--多附件结束-->


			<!--上传附件列表开始-->
			<div class="wrap-container clearfix">
				<div class="column-content-detail">
					<div class="layui-upload">
						<button type="button" class="layui-btn moreFileList-btn-normal" id="fileMore"><span class="iconfont FS15 base-color-bule marr8">&#xe7e2;</span>选择多文件</button>
						<input type="hidden" id="objectId" name="objectId"/>
						<div class="layui-upload-list moreFileList ">
							<ul id="fileShow">
								<!--<li>
									<span class="iconfont FS15 base-color-bule">&#xe7e2;</span>
									<span>选择多文件选择多文件选择多文件选择多文件选择多文件选择多文件选择多文件</span>
									<a class="base-color-bule" href="javascript:void(0)">下载</a>
									<a class="base-color-bule" href="javascript:void(0)">预览</a>
									<a class="base-color-red" href="javascript:void(0)">删除</a>
								</li>-->
							</ul>
						</div>
					</div>

				</div>
			</div>
			<!--上传附件列表结束-->

		</div>
	<script src="${s.base}/lib/layui/layui.js" type="text/javascript" charset="utf-8"></script>
	<script src="${s.base}/js/common.js" type="text/javascript" charset="utf-8"></script>
		<script>
            layui.use(['jquery','fileUtil'], function() {
                var $ = layui.jquery,
                    fileUtil = layui.fileUtil;
                //单图片上传
                fileUtil.uploadImage('#headLogo',{catalog: "sys/user",objectId:""},"headLogo");
                //多附件上传
                fileUtil.uploadMultiFile($('#fileShow'),'#fileMore',"sys/mult",$("#objectId").val(),function (data) {
                    $("#objectId").val(data);
                })
            });
		</script>
	</body>
</html>